// extrawallpaperDlg.h : header file
//

#if !defined(AFX_EXTRAWALLPAPERDLG_H__1C10FCAE_A94B_4B61_A121_44FBE43FDA34__INCLUDED_)
#define AFX_EXTRAWALLPAPERDLG_H__1C10FCAE_A94B_4B61_A121_44FBE43FDA34__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "trayicon.h"
#define WM_TRAY_NOTIFY      WM_USER+1

/////////////////////////////////////////////////////////////////////////////
// CExtrawallpaperDlg dialog

class CExtrawallpaperDlg : public CDialog
{
// Construction
public:
	CExtrawallpaperDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CExtrawallpaperDlg)
	enum { IDD = IDD_EXTRAWALLPAPER_DIALOG };
	CString	m_wallpaper_path;
	int		m_wallpaper_pos;
	UINT	m_time;
    UINT    m_timer;
    CTrayIcon   m_trayicon;
	BOOL	m_auto_start;
	int		m_order;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CExtrawallpaperDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

    void reset_timer();
	LPITEMIDLIST ParsePidlFromPath(LPCTSTR path);

	// Generated message map functions
	//{{AFX_MSG(CExtrawallpaperDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnCancelMode();
    afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
	afx_msg void OnSetting();
	afx_msg void OnAboutDlg();
	afx_msg void OnNextWallpaper();
	afx_msg void OnPreWallpaper();
	afx_msg void OnRandWallpaper();
	afx_msg void OnAutoStrat();
	afx_msg void OnNextOrder();
	afx_msg void OnPreOrder();
	afx_msg void OnRandOrder();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedBrowseBt();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EXTRAWALLPAPERDLG_H__1C10FCAE_A94B_4B61_A121_44FBE43FDA34__INCLUDED_)
